/*
 * guard.cpp
 *
 *  Created on: 29/11/2008
 *      Author: gsenno
 */

#include "../../include/red/guard.h"

namespace red {
namespace hilos {
namespace thread {

Guard::Guard(Mutex* mutex) {
	this->mutex = mutex;
	this->mutex->lock();
}

Guard::~Guard() {
	this->mutex->unlock();
}
}
}
}
